var mongoose  = require('mongoose');
var BaseModel = require("./base_model");
var Schema    = mongoose.Schema;
//var _ = require('lodash');

var CertSchema = new Schema({
    type:{
        type:String
    },
    owner:{
        type:String}
    ,
    name:{
        type:String
    },
    files:{
        type:{}
    },
    extend_info:{
        type:{}
    },
    create_at: { type: Date, default: Date.now },
    update_at: { type: Date, default: Date.now }
});

CertSchema.plugin(BaseModel);

module.exports = mongoose.model('Cert', CertSchema);
